#include<iostream>
using namespace std;
void compareZero(int A[],int n){
  
   for(int i=1;i<=n;i++){
       if(A[i]>0){
           int k=1;
          int B[k];
          B[k]=A[i];
          cout<<"大于0："<<B[k]<<endl;
           k++;
       }else{
           int z=1;
          int C[z];
          C[z]=A[i];
          cout<<"小于0："<<C[z]<<endl;
           z++;
       }
       
   }
 
}
int main(){
 int arr[9]={-1,2,6,-5,5,-6,2,4,-3};
  compareZero(arr,9);
}
